import { requestClient, buildGetUrl } from '#/api/request';
/**
 * 获取列表
 */
export async function queryRentBillList(params) {
  return requestClient.get<string[]>(buildGetUrl('/rentbill/list', params));
}

/**
 * 新增房租信息
 */
export async function insertRentBill(data) {
  return requestClient.post<any>('/rentbill', data);
}

/**
 * 删除房租信息
 */
export async function deleteRentBill(id) {
  return requestClient.delete<any>('/rentbill?id=' + id);
}

/**
 * 获取房租总计等信息
 */
export async function queryRentTotal() {
  return requestClient.get(buildGetUrl('/rentbill/total', ''));
}
